<style>
.equipmentDownTime span.error {
    position: absolute !important;
    left: 260px;
}
</style>
<div class="pageContent">
    <form method="post" action="${rc.getContextPath()}/manage/equipmentDownTime/saveEquipmentDownTime" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <div class="pageFormContent" layoutH="130">
            <input type="hidden" name="navTabId" value="${navTabId!''}"> <input type="hidden" name="id" value="<#if (equipmentDownTime.id)??>${equipmentDownTime.id!''}</#if>">
            <fieldset>
                <dl>
                    <dt><@label key="equipmentCode.C,colon">设备编号：</@label></dt>
                    <dd  class="equipmentDownTime">
                        <input class="required" id="equipmentLookup.equipmentCode" name="equipmentCode" type="text" postField="equipmentCode" 
                        value="<#if (equipmentDownTime.equipmentCode)??>${equipmentDownTime.equipmentCode!''}</#if>" readonly="readonly"
                    </dd>
                </dl>
                <dl>
                    <dt><@label key='equipmentText.C,colon'>设备描述：</@label></dt>
                    <dd>
                        <input id="equipmentLookup.equipmentText" value="<#if (equipmentDownTime.equipmentText)??>${equipmentDownTime.equipmentText!''}</#if>"  readonly size="22" type="text" maxlength="60" name="equipmentText" />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="shutDownCauseCode.C,colon">停机原因代码：</@label></dt>
                    <dd class="equipmentDownTime">
                        <input class="required" id="shutDownCauseLookup.shutDownCauseCode" name="shutDownCauseCode" value="${equipmentDownTime.shutDownCauseCode!''}" 
                              size="22" type="text" maxlength="20" class="required  alphanumeric toUp" readonly="readonly"
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="shutDownCauseText.C,colon">停机原因描述：</@label></dt>
                    <dd>
                        <input name="shutDownCauseText" id="shutDownCauseLookup.shutDownCauseText"
                            value="${equipmentDownTime.shutDownCauseText!''}" size="22" type="text" maxlength="60" class="required"  readonly="readonly"
                          />
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="theDate.C,colon">作业日期：</@label></dt>
                    <dd class="equipmentDownTime">
                        <input type="text"  class="required" readonly="readonly" name="theDate" value="${(equipmentDownTime.theDate?string('yyyy-MM-dd'))?if_exists}"/>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="shutDownDateTime.C,colon">停机时间：</@label></dt>
                    <dd class="equipmentDownTime">
                        <input id="startDateTime" type="text" class="required"  name="startDateTime" readonly="readonly" value="${(equipmentDownTime.startDateTime?string('yyyy-MM-dd HH:mm'))?if_exists}"/>
                    </dd>
                </dl>
                <dl>
                    <dt><@label key="downTime.C,colon">停机时长：</@label></dt>
                    <dd class="equipmentDownTime">
                        <input type="text" min="0" id="ss" class="required oneDecimal" name="downTime"  readonly="readonly" maxlength="10" value="<#if (equipmentDownTime.downTime)??>${equipmentDownTime.downTime!''}</#if>"/>
                    </dd>
                </dl>
                <dl style="width:600px;height:90px;">
                    <dt><@label key='memo.C,colon'>备注：</@label></dt>
                    <dd>
                    <textarea style="width:435px;" name="memo"  maxlength="200" value="${equipmentDownTime.memo!''}"readonly="readonly"  rows="4"><#if (equipmentDownTime.memo)??>${equipmentDownTime.memo!''}</#if></textarea>
                    </dd>
                </dl>
            </fieldset>
        </div>
        <#if (equipmentDownTime.id)??> <#assign createInfo=equipmentDownTime/> <#include "/common/createInfo.html"> </#if>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                                <button type="button" class="close"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>
